package com.anorak.betsy.so;

import cn.hutool.crypto.SecureUtil;
import cn.hutool.crypto.digest.MD5;
import org.apache.commons.codec.digest.Md5Crypt;

import java.nio.charset.StandardCharsets;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Arrays;

public class Run {
    // qq_320_001Wenx12Arhbl|0.mp3 加密后是 6ecf95c95fea900d5d15ae6eea8fd914
    // qq_320_0009iijj2yhfmx|0.mp3 加密后是 7ad36ba9a71ff73662e3c99afe6567e8
    // qq_4000_0009iijj2yhfmx|0.flac 加 是 7deba24abc62caab71d261234b0249ab
    public static void main(String[] args) {
        String input = "qq_4000_0009iijj2yhfmx|0.flac";
        String a = SecureUtil.md5(input);

        System.out.println(SecureUtil.md5(Arrays.toString(a.getBytes(StandardCharsets.UTF_8))));
    }

}